package com.schoolET.service.admin;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.schoolET.entity.Goods;
import com.schoolET.entity.vo.InquireGoodsVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 商品信息 服务类
 * </p>
 *
 * @author lin
 * @since 2024-05-31
 */
public interface IGoodsManageService extends IService<Goods> {

    /**
     * @description:
     * @author: lin
     * @date: 2024/5/31 21:49
     * @param: inquireGoodsVO
     * @return: MyPage<Goods>
     **/
    Page<Goods> inquireGoods(InquireGoodsVO inquireGoodsVO);

    /**
     * @description: 修改商品
     * @author: lin
     * @date: 2024/6/1 0:16
     * @param: goods
     * @param: file
     * @return: boolean
     **/
    boolean goodsCg(Goods goods, MultipartFile file) throws IOException;

    /**
     * @description: 删除不在交易中的商品
     * @author: lin
     * @date: 2024/6/1 15:42
     * @param: id
     * @return: boolean
     **/
    boolean goodsDel(Integer id);
}
